package test3;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Total {
    JFrame j;
    JPanel p;
    JLabel[] l = new JLabel[52];
    static Inquire iq = new Inquire();

    public static void main(String[] args) {
        new Total();
    }

    public Total() {
        j = new JFrame("票数统计");
        j.setBounds(300, 200, 500, 500);
        p = new JPanel(new GridLayout(9, 6));
        for (int i = 1; i <= 52; i++) {
            l[i - 1] = new JLabel(i + "号:" + Inquire.num[i - 1]);
            p.add(l[i - 1]);
        }
        j.add(p);
        j.setVisible(true);


    }

}

